<template>
    <div class='box1'>
        <h1>{{getDesc.title}}</h1>
        <hr>
        <div v-html='getDesc.content' class='content'></div>
    </div>
</template>

<script>
export default {
    data(){
        return{
            id:this.$route.params.id,
            getDesc:{}
        }
    },
    created(){
        this.getdesc()
    },
    methods: {
        getdesc(){
            this.$http.get('api/goods/getdesc/'+this.id).then(result=>{
                if(result.body.status===0){
                    // console.log(result.body)
                    this.getDesc=result.body.message[0]
                }
            })
        }
    }
}
</script>

<style lang='scss' >
.box1{
    padding:4px;
    h1{
        font-size: 14px;
        color: blue;
        text-align: center;
        margin: 15px 0;
    }
    .content{
        img{
            width: 100%;
        }
    }
}

</style>
